
function now(){return (new Date()).valueOf();}

var jQueryCSV = require('./jquery.csv-0.7.js');
var jsCSVTester = require('./javascript-csv-tester.js');
var jsCSV = require('./javascript-csv.js');
var nCSV = require('./javascript-ncsv.js');

var testCSV = jsCSVTester.genCSV(50000,[10,"firstName","lastName","favoriteCar","favoriteColors"]);

//console.log (testCSV);

var startQ = now();
var jQueryCSVExpected = jQueryCSV.csv.toArrays(testCSV);;
console.log("Q:"+ (now() - startQ) );

var startJS = now();
var jsCSVExpected = (jsCSV.parse(testCSV)).data;
console.log("JS:"+ (now() - startJS) );

var startN = now();
var nCSVExpected = (nCSV.parse(testCSV)).data;
console.log("N:"+ (now() - startN) );

